<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2018/11/11
  Time: 14:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = null;
    int port = request.getServerPort();
    if(port==80){
        basePath = request.getScheme()+"://"+request.getServerName()+path;
    }else{
        basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    }
    pageContext.setAttribute("basePath", basePath);
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
登录成功！
<div><a  href="${basePath}">返回</a></div>
</body>
</html>
